package com.sgb.kjwl.model.entity.request;

import android.text.TextUtils;

import java.util.ArrayList;
import java.util.List;

//地图查找出租筛选入参
public class LeaseHallMapFilterJson {

    private int current;
    private int limit;
    private String latitude;
    private String longitude;
    private String firstCategory = "";//一级分类 不限为空
    private String secondCategory = "";//二级分类  不限为空
    private String provinceNo = "";
    private String cityNo = "";
    private List<String> areaNos = new ArrayList<>();
    private String type = "";//租赁类型 1机械， 2 设备，3车辆，4 房产，5土地，6工厂，7农机 (必填)

    public int getCurrent() {
        return current;
    }

    public void setCurrent(int current) {
        this.current = current;
    }

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

    public String getLatitude() {
        if (TextUtils.isEmpty(latitude)) return "0";
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public void setLatitude(Double latitude) {
        this.latitude = String.valueOf(latitude);
    }

    public String getLongitude() {
        if (TextUtils.isEmpty(longitude)) return "0";
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public void setLongitude(Double longitude) {
        this.longitude = String.valueOf(longitude);
    }

    public String getFirstCategory() {
        return firstCategory;
    }

    public void setFirstCategory(String firstCategory) {
        this.firstCategory = firstCategory;
    }

    public String getSecondCategory() {
        return secondCategory;
    }

    public void setSecondCategory(String secondCategory) {
        this.secondCategory = secondCategory;
    }

    public String getProvinceNo() {
        return provinceNo;
    }

    public void setProvinceNo(String provinceNo) {
        this.provinceNo = provinceNo;
    }

    public String getCityNo() {
        return cityNo;
    }

    public void setCityNo(String cityNo) {
        this.cityNo = cityNo;
    }

    public List<String> getAreaNos() {
        return areaNos;
    }

    public void setAreaNos(List<String> areaNos) {
        this.areaNos = areaNos;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

}
